package com.adapter.classAdapter;

public class Phone {
    public void charging(Voltage5V voltage5V){
        if (voltage5V.output5v() == 5){
            System.out.println("电压为5v，可以充电");
        }else if (voltage5V.output5v() > 5){
            System.out.println("电压过高,请使用适配器充电");
        }
    }
}
